package com.zimmur.dao.account;

import java.util.List;
import java.util.Map;

import com.zimmur.model.account.UserAddress;

public interface IUserAddressDao {

    int deleteByPrimaryKey(Long addressId);

    int insertSelective(UserAddress record);

    UserAddress selectByPrimaryKey(Long addressId);

    int updateByPrimaryKeySelective(UserAddress record);
    List<UserAddress> selectByUserId(long userId);
    /**
     * 
     * @param addressId 地址记录ID
     * 
     * @return
     */
    int updateAddressDefault(Map<String, Object> map);
    int updateResetDefault(long userId);

}